package com.shenxuchen.crm.mapper;

import com.shenxuchen.crm.pojo.ActivityRemark;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface ActivityRemarkMapper {
    @Select("select * from tbl_marketing_activities_remark where marketingActivitiesId=#{actId}")
    List<ActivityRemark> getRemarks(String actId);

    void save(ActivityRemark activityRemark);

    @Delete("delete from tbl_marketing_activities_remark where id=#{id}")
    void delete(String id);

    @Update("update tbl_marketing_activities_remark " +
            " set " +
            " noteContent=#{noteContent}," +
            " editPerson=#{editPerson}," +
            " editTime=#{editTime} " +
            " where id=#{id}")
    void edit(ActivityRemark activityRemark);
}
